/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package pckVista.Configuraciones;

import pckVista.Contenedores.frmPrincipal;

/**
 *
 * @author Hider Sánchez - Departamento de Sistemas : SINTEC-PERÚ
 *
 * : sintecperu@gmail.com : informes@sintecperu.tk
 *
 * : http://www.sintecperu.tk : http://www.sintecperu.com
 */
public class pnlConfigRoles extends javax.swing.JPanel {

    /**
     * Creates new form pnlUsuario
     */
       private frmPrincipal oPrincipal;
    public pnlConfigRoles(frmPrincipal f) {
        oPrincipal=f;
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        txtBuscaUsuario = new javax.swing.JTextField();
        jScrollPane1 = new javax.swing.JScrollPane();
        tblListaUsuario = new javax.swing.JTable();
        jToolBar1 = new javax.swing.JToolBar();
        btnAgregarUsuario = new javax.swing.JButton();
        btnEditarUsuario = new javax.swing.JButton();
        btnRecargarUsuario = new javax.swing.JButton();
        btnEliminarUsuario = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();

        setBackground(new java.awt.Color(190, 206, 205));
        setAutoscrolls(true);

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/32/search.png"))); // NOI18N
        jLabel1.setText("Nombre de rol");
        jLabel1.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);

        tblListaUsuario.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null},
                {null, null},
                {null, null},
                {null, null}
            },
            new String [] {
                "Nombre", "Descripcion"
            }
        ));
        tblListaUsuario.setGridColor(new java.awt.Color(0, 255, 255));
        jScrollPane1.setViewportView(tblListaUsuario);

        jToolBar1.setBackground(new java.awt.Color(102, 102, 102));
        jToolBar1.setBorder(null);
        jToolBar1.setFloatable(false);
        jToolBar1.setRollover(true);

        btnAgregarUsuario.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/32/plus.png"))); // NOI18N
        btnAgregarUsuario.setText("Agregar [ F3 ]");
        btnAgregarUsuario.setContentAreaFilled(false);
        btnAgregarUsuario.setFocusable(false);
        btnAgregarUsuario.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnAgregarUsuario.setPreferredSize(new java.awt.Dimension(100, 90));
        btnAgregarUsuario.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(btnAgregarUsuario);

        btnEditarUsuario.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/32/quill.png"))); // NOI18N
        btnEditarUsuario.setText("Editar [ F4 ]");
        btnEditarUsuario.setContentAreaFilled(false);
        btnEditarUsuario.setFocusable(false);
        btnEditarUsuario.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnEditarUsuario.setPreferredSize(new java.awt.Dimension(100, 90));
        btnEditarUsuario.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(btnEditarUsuario);

        btnRecargarUsuario.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/32/loop.png"))); // NOI18N
        btnRecargarUsuario.setText("Recargar [ F5 ]");
        btnRecargarUsuario.setContentAreaFilled(false);
        btnRecargarUsuario.setFocusable(false);
        btnRecargarUsuario.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnRecargarUsuario.setPreferredSize(new java.awt.Dimension(100, 90));
        btnRecargarUsuario.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        jToolBar1.add(btnRecargarUsuario);

        btnEliminarUsuario.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/32/remove2.png"))); // NOI18N
        btnEliminarUsuario.setText("Eliminar [ F6 ]");
        btnEliminarUsuario.setContentAreaFilled(false);
        btnEliminarUsuario.setFocusable(false);
        btnEliminarUsuario.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnEliminarUsuario.setPreferredSize(new java.awt.Dimension(100, 90));
        btnEliminarUsuario.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnEliminarUsuario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnEliminarUsuarioActionPerformed(evt);
            }
        });
        jToolBar1.add(btnEliminarUsuario);

        jLabel2.setFont(new java.awt.Font("sansserif", 1, 18)); // NOI18N
        jLabel2.setText("Administracion de Roles");
        jLabel2.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(10, 10, 10)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtBuscaUsuario))
                    .addComponent(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, 410, Short.MAX_VALUE))
                .addGap(9, 9, 9))
            .addGroup(layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jLabel2)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(40, 40, 40)
                .addComponent(jLabel2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtBuscaUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(20, 20, 20)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 274, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(20, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void btnEliminarUsuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEliminarUsuarioActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnEliminarUsuarioActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnAgregarUsuario;
    private javax.swing.JButton btnEditarUsuario;
    private javax.swing.JButton btnEliminarUsuario;
    private javax.swing.JButton btnRecargarUsuario;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JToolBar jToolBar1;
    private javax.swing.JTable tblListaUsuario;
    private javax.swing.JTextField txtBuscaUsuario;
    // End of variables declaration//GEN-END:variables
}
